package com.yuju.vo.member;

import java.util.Date;

import com.yuju.common.BaseVO;
import com.yuju.common.fileld.validator.Rule.NonNull;

/**
 * 
 * 类名：MemberVo  <br />
 *
 * 功能：会员视图对象，用来接收参数、参数验证、DTO
 *
 * @author : xuehj <br />
 * @Date : 2017年9月11日 下午2:54:18  <br />
 * @version : 2017年9月11日 <br />
 */
public class MemberVo extends BaseVO {
	private static final long serialVersionUID = 1L;

	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer rows;
	
	// 当前页码
	@NonNull(message = "页数不能为空", serviceLine = "pager")
	private Integer page;

	@NonNull(message = "会员名称不能为空", serviceLine = "member_update,member_del")
	private Integer id;

	@NonNull(message = "会员名称不能为空", serviceLine = "member_save,member_update")
	private String name;

    private String tel;

    private Byte sex;

    private Byte certificateType;

    private String certificateNo;

    //@NonNull(message = "会员生日不能为空", serviceLine = "member_save,member_update")
	private Date birthDate;

    private String nativePlace;

    @NonNull(message = "会员地址不能为空", serviceLine = "member_save,member_update")
	private String address;

    //@NonNull(message = "会员编号不能为空", serviceLine = "member_save,member_update")
	private String cardNo;

    @NonNull(message = "会员等级不能为空", serviceLine = "member_save,member_update")
	private Integer level;

    private Integer bd;

    private Byte cardState;

    private Date expiryDate;

    private Integer hotelId;

    private Date gmtCreate;

    private Date gmtModified;

    private Integer sourceType;

    private String openId;

    private Double lat;

    private Double lng;

    private String password;

    private String memo;
    
    private String mobile;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public Byte getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(Byte certificateType) {
        this.certificateType = certificateType;
    }

    public String getCertificateNo() {
        return certificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo == null ? null : certificateNo.trim();
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace == null ? null : nativePlace.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo == null ? null : cardNo.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getBd() {
        return bd;
    }

    public void setBd(Integer bd) {
        this.bd = bd;
    }

    public Byte getCardState() {
        return cardState;
    }

    public void setCardState(Byte cardState) {
        this.cardState = cardState;
    }

    public Date getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

    public void setHotelId(Integer hotelId) {
        this.hotelId = hotelId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId == null ? null : openId.trim();
    }

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}
}
